//
//  UIView+Alert.h
//  BadBoy
//
//  Created by 余勇 on 2017/3/8.
//  Copyright © 2017年 niusaibing. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSUInteger, AlertType) {
    AlertTypeAlert,
    AlertTypeSheet
};

@interface UIView (Alert)

- (void)alertWithTitle:(NSString *)title
               message:(NSString *)message
                  type:(AlertType)type
           cancleTitle:(NSString *)cancleTitle
            otherTitle:(NSArray *)otherTitle
            clickBlock:(void(^)(NSInteger index))clickBlock;

- (void)drawLineLength:(int)lineLength lineSpacing:(int)lineSpacing lineColor:(UIColor *)lineColor verticality:(BOOL)verticality;

@property (nonatomic, copy) void(^clickBlock)(NSInteger index);

@end
